package elephant.servers.gameserver.codec;

/**
 * 
 * @author skydu
 *
 */
public class ResponseMessage extends GameServerMessage{
	//
	 /** 包头长度 totalLength 4+requestId 4+errCode 4+errMsgLength 2+bodySerializeType 2+timestamp 8+serviceIdLength 2*/
    public static final int HEAD_LEN = 4+4+4+2+2+8+2;
    //
    /**正确的返回值 其他都是有错误*/
    public static final int ERR_CODE_OK = 0;
	/**错误的消息格式*/
	public static final int ERR_CODE_BAD_MESSAGE=1;
	/**客户端被服务器踢掉*/
	public static final int ERR_CODE_KICKED=2;
	/**业务异常*/
	public static final int ERR_CODE_BIZ_EXCEPTION = 3;
	//
    /**消息id*/
    public int requestId;
    /**错误码*/
    public int errCode;
    /**body序列化方式*/
    public short bodySerializeType;
    //
    /**错误信息*/
    public String errMsg;
    /**服务ID*/
    public String serviceId;
    /**数据*/
    public Object body;
    //
}
